home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / PlainTalk Developer / Text-to-Speech / Installer Source / Templates / InstallAFile.r < prev    next >
Encoding:
Text File  |  1995-03-31  |  2.0 KB  |  57 lines  |  [TEXT/MPS ]

  1. /*------------------------------------------------------------------------------
  2.  *
  3.  *    File:        InstallAFile.r -    Rez Source
  4.  *
  5.  *    Author:        Deric Horn
  6.  *
  7.  *    Template for installing a file.
  8.  *    This contains the necessary type deffinitions to install a file.
  9.  *
  10.  *    History:    <1>    (12/2/94) Created this file.
  11.  *
  12.  *----------------------------------------------------------------------------*/
  13.  
  14. #ifndef    TARGETNAME
  15.     #define    TARGETNAME    FILENAME
  16. #endif
  17. #ifndef    DELETEFILE
  18.     #define    DELETEFILE    deleteWhenRemoving
  19. #endif
  20.  
  21.  
  22. resource 'infa' (sourceFileBase+ID,FILENAME) {
  23.     format0 {
  24.         DELETEFILE,                        /* Delete the file if remove (option-custom) is clicked    */
  25.         deleteWhenInstalling,             /* Delete the target before copying new one */
  26.         copy,                             /* Copy the file to the destination */
  27.         leaveAloneIfNewer,                 /* do not Install this version, if newer one exists */
  28.         updateExisting,                 /* Always replace an existing copy */
  29.         copyIfNewOrUpdate,                /* Copy whether the target file exists or not */
  30.         rsrcFork, dataFork,                /* Copy both forks of the file */
  31.         targetFileBase + ID,            /* TARGET file spec for this file */
  32.         sourceFileBase + ID,            /* SOURCE file spec for this file */
  33.         0,                                /* atom size (filled in by ScriptCheck) */
  34.         ""                                /* Atom Description (Installer will use file name) */
  35.     };
  36. };
  37.  
  38. resource 'infs' (targetFileBase+ID,TARGETNAME) {
  39.     FILETYPE,                            /* File Type */
  40.     FILECREATOR,                        /* Creator */
  41.     0,                                    /* creation date not needed for target file specs */
  42.     noSearchForFile,                    /* Do not search the target disk for the file */
  43.     TypeCrNeedNotMatch,                    /* not needed for target file specs */
  44.     DESTDIR TARGETNAME                    /* destination Path */
  45. };
  46.  
  47. resource 'infs' (sourceFileBase+ID,FILENAME) {
  48.     FILETYPE,                            /* File Type */
  49.     FILECREATOR,                        /* Creator */
  50.     kScriptCheckSetsDate,                /* ScriptCheck fills in the creation date */
  51.     noSearchForFile,                    /* Do not search the source disk for the file */
  52.     TypeCrMustMatch,                    /* file type and creator on source disk must match */
  53.     SOURCEDIR FILENAME                    /* Path to the file */
  54. };
  55.  
  56. #undef    DELETEFILE
  57. #undef    TARGETNAME